package com.app.manage.moudles.push.constants;

import java.util.Map;

public enum  FileStatusEnums {
    DEL(0,"删除"),
    ADD(1,"新增"),
    UPD(2,"修改");

    private Integer status;

    private String name;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    FileStatusEnums(Integer status, String name) {
        this.status = status;
        this.name = name;
    }

    public static String getNameByStatus(Integer status){
        for(FileStatusEnums e : FileStatusEnums.values()){
            if(e.getStatus() - status == 0){
                return e.getName();
            }
        }
        return null;
    }


}
